#include "commdefine.h"


int treeDepth(QTreeWidgetItem *item)
{
    int depth = 0;
    while(Q_NULLPTR != item)
    {
        item = item->parent();
        ++depth;
    }
    return depth;
}
